<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/30
  Time: 21:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>修改密码</title>
    <link href="${pageContext.request.contextPath}/layui/css/layui.css" rel="stylesheet" />
    <style>
        body{
            font-family: 宋体;
        }
        .address-left{
            width: 220px;
            height: 280px;
            margin-left: 350px;
            margin-top: 10px;
            margin-bottom: 10px;
            border: 1px solid #848484;
            float: left;
            border-collapse: collapse;
            box-sizing: border-box;
        }
        .address-left tr{
            height: 40px;
            /* border: 1px solid #848484; */
        }
        .address-left1-1{
            background-color: #f27521;
            color: white;
            height: 40px;
            text-align: center;
            line-height: 40px;
        }
        .address-left2{
            background-color: #f4f4f4;
            font-weight: bold;
            width: 100%;
            border-bottom: 3px solid orange;
        }
        .address-left2-1>img{
            height: 30px;
            padding-top: 5px;
            box-sizing: border-box;
            margin-left: 5px;
        }
        .address-left2-1{
            line-height: 30px;

        }
        .address-left3{
            border-bottom: 1px dashed darkgray;
        }
        .address-right{
            width: 850px;
            height: 600px;
            margin-top: 10px;
            margin-left: 10px;
            margin-bottom: 10px;
            border: 1px solid black;
            float: left;
        }
        .address-right-head{
            height: 40px;
            width: 850px;
            margin-top: 10px;
            margin-left: 10px;
            /* border: 1px solid black; */
            border-collapse: collapse;
        }
        .address-right-head1{

            border-bottom: 2px solid orange;
        }
        .address-right-head3{
            width: 100px;
            height: 30px;
            background-color: #ef771f;
            color: white;
            line-height: 30px;
            text-align: center;
            font-size: 16px;
        }
        .address-font{
            color: orange;
        }
        .header-bottom-search{
            padding-left: 350px;
        }
        .address-right-a{
            padding-top: 20px;
            padding-left: 50px;
        }
        .address-right-a1{
            width: 300px;
        }
        .address-right-a2{
            margin-left: 50px;
            margin-top: 20px;
        }
        .address-right2{
            margin-left: 180px;
            margin-top: 10px;
        }
    </style>
    <script src="${pageContext.request.contextPath}/layui/layui.js"></script>

</head>
<body>

<%--商城logo--%>
<%@include file="headtop.jsp"%>
<%--商城分类--%>
<%@include file="headmid.jsp"%>
<%--搜索框引入--%>
<%@ include file="search.jsp"%>


<!-- 会员中心 -->
<table class="address-left">
    <tr class="address-left1">
        <td>
            <div class="address-left1-1">会员中心</div>
        </td>
    </tr>
    <tr class="address-left2">
        <td>
            <div class="address-left2-1">
                <img  src="${pageContext.request.contextPath}/img/trading.png"/>
                交易记录</div>
        </td>
    </tr>
    <tr class="address-left3">
        <td>
            <ul type="square" >
                <li>我的订单</li>
            </ul>
        </td>
    </tr>
    <tr class="address-left2">
        <td>

            <div class="address-left2-1">
                <img src="${pageContext.request.contextPath}/img/setting.png"/>
                个人设置</div>
        </td>
    </tr>
    <tr class="address-left3">
        <td>
            <ul type="square">
                <li>地址管理</li>
            </ul>
        </td>
    </tr>
    <tr class="address-left3">
        <td>
            <ul type="square">
                <li>修改头像</li>
            </ul>
        </td>
    </tr>
    <tr class="address-left3">
        <td>
            <ul type="square">
                <li>修改密码</li>
            </ul>
        </td>
    </tr>
</table>


<!-- 修改密码 -->
<table calss="address-right">
    <tr>
        <td>
            <table class="address-right-head">
                <tr class="address-right-head1">
                    <td class="address-right-head2">
                        <div class="address-right-head3">
                            修改密码
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>

    <tr class="address-right-a">
        <td >
            <div class="layui-form-item address-right-a2">
                <label class="layui-form-label ">原密码:</label>
                <div class="layui-input-block address-right-a1">
                    <input type="text" name="password" lay-verify="title" autocomplete="off" placeholder="请输入原密码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item address-right-a2">
                <label class="layui-form-label ">新密码:</label>
                <div class="layui-input-block address-right-a1">
                    <input type="text" name="password" lay-verify="title" autocomplete="off" placeholder="请输入新密码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item address-right-a2">
                <label class="layui-form-label ">确认密码:</label>
                <div class="layui-input-block address-right-a1">
                    <input type="password" name="password" placeholder="请确认密码" autocomplete="off" class="layui-input">
                </div>
            </div>
            </div>
        </td>
    </tr>
    <tr >
        <td>
            <button class="address-right2">保存</button>
            <button>取消</button>
        </td>
    </tr>

</table>


<!-- 底栏属性 -->
<%@include file="helpinfo.jsp"%>
<!-- 尾栏 -->
<%@include file="footer.jsp"%>

</body>
<script>
    layui.use(['upload', 'element', 'layer'], function(){
        var $ = layui.jquery
            ,upload = layui.upload
            ,element = layui.element
            ,layer = layui.layer;

        //常规使用 - 普通图片上传
        var uploadInst = upload.render({
            elem: '#test1'
            ,url: 'https://httpbin.org/post' //此处用的是第三方的 http 请求演示，实际使用时改成您自己的上传接口即可。
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                    $('#demo1').attr('src', result); //图片链接（base64）
                });

                element.progress('demo', '0%'); //进度条复位
                layer.msg('上传中', {icon: 16, time: 0});
            }
            ,done: function(res){
                //如果上传失败
                if(res.code > 0){
                    return layer.msg('上传失败');
                }
                //上传成功的一些操作
                //……
                $('#demoText').html(''); //置空上传失败的状态
            }
            ,error: function(){
                //演示失败状态，并实现重传
                var demoText = $('#demoText');
                demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-xs demo-reload">重试</a>');
                demoText.find('.demo-reload').on('click', function(){
                    uploadInst.upload();
                });
            }
            //进度条
            ,progress: function(n, elem, e){
                element.progress('demo', n + '%'); //可配合 layui 进度条元素使用
                if(n == 100){
                    layer.msg('上传完毕', {icon: 1});
                }
            }
        });
</script>
</html>
